using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class SnsCommentResponse : GeneratedMessageLite<SnsCommentResponse, SnsCommentResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<SnsCommentResponse, SnsCommentResponse.Builder>
		{
			private bool resultIsReadOnly;
			private SnsCommentResponse result;
			protected override SnsCommentResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override SnsCommentResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override SnsCommentResponse DefaultInstanceForType
			{
				get
				{
					return SnsCommentResponse.DefaultInstance;
				}
			}
			public BaseResponse BaseResponse
			{
				get
				{
					return this.result.BaseResponse;
				}
				set
				{
					this.SetBaseResponse(value);
				}
			}
			public SnsObject SnsObject
			{
				get
				{
					return this.result.SnsObject;
				}
				set
				{
					this.SetSnsObject(value);
				}
			}
			public Builder()
			{
				this.result = SnsCommentResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(SnsCommentResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private SnsCommentResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					SnsCommentResponse other = this.result;
					this.result = new SnsCommentResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override SnsCommentResponse.Builder Clear()
			{
				this.result = SnsCommentResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override SnsCommentResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new SnsCommentResponse.Builder(this.result);
				}
				return new SnsCommentResponse.Builder().MergeFrom(this.result);
			}
			public override SnsCommentResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override SnsCommentResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is SnsCommentResponse)
				{
					return this.MergeFrom((SnsCommentResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override SnsCommentResponse.Builder MergeFrom(SnsCommentResponse other)
			{
				return this;
			}
			public override SnsCommentResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override SnsCommentResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(SnsCommentResponse._snsCommentResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = SnsCommentResponse._snsCommentResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 10u)
					{
						if (num3 != 18u)
						{
							if (WireFormat.IsEndGroupTag(num))
							{
								return this;
							}
							this.ParseUnknownField(input, extensionRegistry, num, text);
						}
						else
						{
							SnsObject.Builder builder = SnsObject.CreateBuilder();
							if (this.result.hasSnsObject)
							{
								builder.MergeFrom(this.SnsObject);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.SnsObject = builder.BuildPartial();
						}
					}
					else
					{
						BaseResponse.Builder builder2 = BaseResponse.CreateBuilder();
						if (this.result.hasBaseResponse)
						{
							builder2.MergeFrom(this.BaseResponse);
						}
						input.ReadMessage(builder2, extensionRegistry);
						this.BaseResponse = builder2.BuildPartial();
					}
				}
				return this;
			}
			public SnsCommentResponse.Builder SetBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = value;
				return this;
			}
			public SnsCommentResponse.Builder SetBaseResponse(BaseResponse.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = builderForValue.Build();
				return this;
			}
			public SnsCommentResponse.Builder MergeBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseResponse && this.result.baseResponse_ != BaseResponse.DefaultInstance)
				{
					this.result.baseResponse_ = BaseResponse.CreateBuilder(this.result.baseResponse_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseResponse_ = value;
				}
				this.result.hasBaseResponse = true;
				return this;
			}
			public SnsCommentResponse.Builder ClearBaseResponse()
			{
				this.PrepareBuilder();
				this.result.hasBaseResponse = false;
				this.result.baseResponse_ = null;
				return this;
			}
			public SnsCommentResponse.Builder SetSnsObject(SnsObject value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasSnsObject = true;
				this.result.snsObject_ = value;
				return this;
			}
			public SnsCommentResponse.Builder SetSnsObject(SnsObject.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasSnsObject = true;
				this.result.snsObject_ = builderForValue.Build();
				return this;
			}
			public SnsCommentResponse.Builder MergeSnsObject(SnsObject value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasSnsObject && this.result.snsObject_ != SnsObject.DefaultInstance)
				{
					this.result.snsObject_ = SnsObject.CreateBuilder(this.result.snsObject_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.snsObject_ = value;
				}
				this.result.hasSnsObject = true;
				return this;
			}
			public SnsCommentResponse.Builder ClearSnsObject()
			{
				this.PrepareBuilder();
				this.result.hasSnsObject = false;
				this.result.snsObject_ = null;
				return this;
			}
		}
		public const int BaseResponseFieldNumber = 1;
		public const int SnsObjectFieldNumber = 2;
		private static readonly SnsCommentResponse defaultInstance;
		private static readonly string[] _snsCommentResponseFieldNames;
		private static readonly uint[] _snsCommentResponseFieldTags;
		private bool hasBaseResponse;
		private BaseResponse baseResponse_;
		private bool hasSnsObject;
		private SnsObject snsObject_;
		private int memoizedSerializedSize = -1;
		public static SnsCommentResponse DefaultInstance
		{
			get
			{
				return SnsCommentResponse.defaultInstance;
			}
		}
		public override SnsCommentResponse DefaultInstanceForType
		{
			get
			{
				return SnsCommentResponse.DefaultInstance;
			}
		}
		protected override SnsCommentResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseResponse BaseResponse
		{
			get
			{
				return this.baseResponse_ ?? BaseResponse.DefaultInstance;
			}
		}
		public SnsObject SnsObject
		{
			get
			{
				return this.snsObject_ ?? SnsObject.DefaultInstance;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseResponse && this.hasSnsObject && this.BaseResponse.IsInitialized && this.SnsObject.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseResponse)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseResponse);
				}
				if (this.hasSnsObject)
				{
					num += CodedOutputStream.ComputeMessageSize(2, this.SnsObject);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private SnsCommentResponse()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] snsCommentResponseFieldNames = SnsCommentResponse._snsCommentResponseFieldNames;
			if (this.hasBaseResponse)
			{
				output.WriteMessage(1, snsCommentResponseFieldNames[0], this.BaseResponse);
			}
			if (this.hasSnsObject)
			{
				output.WriteMessage(2, snsCommentResponseFieldNames[1], this.SnsObject);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseResponse)
			{
				num ^= this.baseResponse_.GetHashCode();
			}
			if (this.hasSnsObject)
			{
				num ^= this.snsObject_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			SnsCommentResponse snsCommentResponse = object_0 as SnsCommentResponse;
			return snsCommentResponse != null && (this.hasBaseResponse == snsCommentResponse.hasBaseResponse && (!this.hasBaseResponse || this.baseResponse_.Equals(snsCommentResponse.baseResponse_))) && (this.hasSnsObject == snsCommentResponse.hasSnsObject && (!this.hasSnsObject || this.snsObject_.Equals(snsCommentResponse.snsObject_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<SnsCommentResponse, SnsCommentResponse.Builder>.PrintField("BaseResponse", this.hasBaseResponse, this.baseResponse_, writer);
			GeneratedMessageLite<SnsCommentResponse, SnsCommentResponse.Builder>.PrintField("SnsObject", this.hasSnsObject, this.snsObject_, writer);
		}
		public static SnsCommentResponse ParseFrom(byte[] data)
		{
			return SnsCommentResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private SnsCommentResponse MakeReadOnly()
		{
			return this;
		}
		public static SnsCommentResponse.Builder CreateBuilder()
		{
			return new SnsCommentResponse.Builder();
		}
		public override SnsCommentResponse.Builder ToBuilder()
		{
			return SnsCommentResponse.CreateBuilder(this);
		}
		public override SnsCommentResponse.Builder CreateBuilderForType()
		{
			return new SnsCommentResponse.Builder();
		}
		public static SnsCommentResponse.Builder CreateBuilder(SnsCommentResponse prototype)
		{
			return new SnsCommentResponse.Builder(prototype);
		}
		static SnsCommentResponse()
		{
			SnsCommentResponse.defaultInstance = new SnsCommentResponse().MakeReadOnly();
			SnsCommentResponse._snsCommentResponseFieldNames = new string[]
			{
				"BaseResponse",
				"SnsObject"
			};
			SnsCommentResponse._snsCommentResponseFieldTags = new uint[]
			{
				10u,
				18u
			};
			object.ReferenceEquals(micromsg.Proto.SnsCommentResponse.Descriptor, null);
		}
	}
}
